package com.dq;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName ConditionOnClass
 * @Description Condition超集
 * @Author DuX1aoQiang
 * @Date 2023/5/20 20:02
 * @Version 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
@Conditional(AbstractCondition.class)  //此注解会因为Spring扫描 ConditionOnClass此注解然后扫入Conditional
public @interface ConditionOnClass {
    String value();
}
